/* 
    这是商品的相关ajax请求发送的接口调用层
*/
// 引入自己封装的request工具函数
import request from "@/utils/request"


// 获取订单列表含查询
export const orderList = (params) => {
    return request({
        method: 'get',
        url: '/order/search',
        params
    })
}

// 获取订单详情
export const getOrderDetail = (id) => {
    return request({
        method: 'get',
        url: '/order/detail',
        params: {
            id
        }
    })
}

// 修改订单
export const editOrder = (data) => {
    return request({
        method: 'post',
        url: '/order/edit',
        data
    })
}